#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import math
import random
#test
destFile="/home/g5tf87/testpy/data4lianziTest.dat"

def genData(fpath):
	notOutliers=[(random.randint(15,35),random.randint(75,95)) for j in range(500)]
	outliers=[(random.randint(90,95),random.randint(10,15))for j in range(20)]
	ret=list(set(notOutliers+outliers))
	content=""
	num=1
	for item in ret:
		content+=str(num)
		content+="    "
		content+=str(item[0])
		content+="    "
		content+=str(item[1])
		content+="\n"
		num+=1
	fd=open(fpath,"w")
	fd.write(content)
	fd.close()

genData(destFile)
